<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
    <div id="app">
        <my-parent name="title"></my-parent>
    </div>
    <script>
        Vue.component('my-parent',{
            props:['name'],
            template:'<div>我是父组件{{name}}</div>'
        })
        var vm = new Vue({
            el: '#app'
        })
    </script>
</head>
<body>
    
</body>
</html>